import { DefaultTheme } from "vitepress"
import { readDirRecursively } from "../../utils"
import path from "path"

const baseDir = path.resolve(__dirname, "../../../blogItem")
const sidebarList = await readDirRecursively(baseDir)
console.log(
  "-------------------- 根据文件结构生成配置成功🎭 -------------------- "
)
console.log(JSON.stringify(sidebarList, null, 4))
console.log(
  "-------------------- 根据文件结构生成配置成功🎭 -------------------- "
)
const sidebar: DefaultTheme.SidebarItem[] = sidebarList
export default sidebar
